# docker pull moxm/java:1.8-full
# docker tag moxm/java:1.8-full @docker.registry@/moxm/java:1.8-full
# docker push @docker.registry@/moxm/java:1.8-full
# FROM openjdk:8-jdk-alpine
FROM moxm/java:1.8-full
RUN mkdir -p /workspace/@project.artifactId@
WORKDIR /workspace/@project.artifactId@
ARG JAR_FILE=target/@build.finalName@.jar
COPY ${JAR_FILE} app.jar
EXPOSE @server.port@
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"
CMD sleep 8; java -jar app.jar $JAVA_OPTS